@import "fontawesome";
@import "src/assets/geotoolkit-tooltip";
@import "src/assets/geotoolkit-toolbar";

body {
  margin: 0;
  padding: 0;
  background: var(--background-color);
  transition:
          color .5s,
          border .5s,
          background-color .5s;

  div {
    box-sizing: border-box;
  }
}

.button {
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid rgba(155, 155, 155, 0.5);
  background: var(--card-color);
  color: var(--text-color);

  &:hover {
    cursor: pointer;
  }
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  header {
    height: 8vh;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);

    h2 {
      margin: 16px 16px 0 16px;
    }
  }

  .charts-container {
    height: 92vh;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);

    .horizontal-log {
      grid-column-start: 2;
      grid-column-end: 4;
    }

    .vertical-log {
      grid-row-start: 1;
      grid-row-end: 5;
    }

    .card {
      margin: 8px;
      overflow: hidden;
      border-radius: 4px;
      border: 1px solid rgba(155, 155, 155, 0.5);
      box-sizing: border-box;

      color: var(--title-color);
      background: var(--card-color);

      @media (max-width: 800px) {
        grid-row-start: auto;
        grid-row-end: auto;
        grid-column-start: 1;
        grid-column-end: 4;

        min-height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
      }
    }

    @media (max-width: 800px) {
      grid-template-rows: repeat(4, 1fr);
    }

  }

  @media (max-width: 800px) {
    .theme-switcher,
    .charts-container {
      height: unset;
    }
  }
}
